package chp08;

public class Test7 {

    public static void main(String[] args) {
        /*
        *  *
        *  ***
        *  *****
        *  *******
        *  *********
        *   1 -> 1 = 2 * 1 - 1
            2 -> 3 = 2 * 2 - 1
            3 -> 5 = 2 * 3 - 1
            4 -> 7 = 2 * 4 - 1
            5 -> 9 = 2 * 5 - 1
        * */
        int num = 5;
        for (int i = 1; i <= num; i++){
            for(int j = 1; j <= 2*i-1;j++){
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
